if (WIN32)
    set (CURRENT_SOURCES win32main.cpp FPM_Server.cpp)
else (WIN32)
    set (CURRENT_SOURCES main.cpp FPM_Server.cpp)
endif (WIN32)

add_executable(FPMS ${CURRENT_SOURCES} ${iLPR_Src_List} ${iLPR_Lpr_List})

if (WIN32)
    list(APPEND LINK_LIB_LIST WS2_32 Iphlpapi shlwapi)
#    set_target_properties(iLPR PROPERTIES COMPILE_FLAGS ${VS_FALGS} )
elseif(NOT ANDROID OR IOS)
   list(APPEND LINK_LIB_LIST mysqlclient fswatch pthread uuid)
endif ()

target_link_libraries(FPMS ${LINK_LIB_LIST})